<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>send</title>
</head>
<body>
    <script>
        ws = new WebSocket('ws:123.207.89.18:9502');
        ws.onopen = function(event){
            alert('连接成功');
        }

        ws.onclose = function(e){
            alert('连接失败');
        }
    </script>
</body>
</html>